package com.bauer.java;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.io.IOUtils;

/**
 * Hello world!
 */
public class App {

    public static void main(String[] args) throws Exception {
        String key = "dEsBgPZW2r3ZZ85u";
        HebaoFileAesHelper hebaoFileAesHelper = new HebaoFileAesHelper(key);
        List<String> str = IOUtils.readLines(
            new FileInputStream("C:\\Users\\wangqi\\Desktop\\BACK_MPLCASH_888009962120047_DEDUCTION_20200707_002.DAT"));
        List<String> result = new ArrayList<>();
        for (String res : str){
            result.add(hebaoFileAesHelper.decrypt(res));
            System.out.println(res);
        }

    }
}
